#ifndef KNOBSKIN_H
#define KNOBSKIN_H

#include <allegro5/allegro5.h>
#include <string>
#include "util.h"
#include "rect.h"

class KnobSkin {
public:
     KnobSkin(const std::string &imagefile, int size, int cols);
     ~KnobSkin();
     int size() const;
     // get rect into bitmap for val (0-1)
     Rect rect(double val) const;
     ALLEGRO_BITMAP* bitmap() const;

private:
     // knob angle offset
     static const int Offset = 15;
     int m_size;
     ALLEGRO_BITMAP* m_pBitmap;
     int m_cols;
};

#endif
